<template>
	<view  style="display: flex; width: 95%; margin: 0 auto; flex-wrap: wrap;">
		<view style="text-align: center; margin-left: 0rpx; flex: 1;">
			<text style="display: block; margin: 15rpx 0; line-height: 60rpx; font-size: 40rpx; font-weight: 800;">
				{{item.username}}
			</text>
		</view>
		<view style="text-align: center;display: block; margin: 15rpx 0; line-height: 60rpx;">
			
			<text style="color: #888888; line-height: ;">
				{{item.procApplyTime.slice(0,10)}}
			</text>
		</view>
		<view class="choice" style="flex: 2; margin-top: 10rpx; display: flex;">
			<view style="margin: auto;" class="flex1">
				<butt @clickButt="toDetail" :content="level == 2?'审核':'详情'"></butt>
			</view>
			<view v-if="show" style="margin: auto;" class="flex1">
				<butt @clickButt="toSchedule" content="进度"></butt>
			</view>
		</view>
		<cross-line style="width: 750rpx;"></cross-line>
	</view>
</template>

<script>
	import butt from '@/components/ui/myButt.vue'
	import crossLine from '@/components/ui/tg-cross-line.vue'
	export default {
		components: {
			butt,
			crossLine
		},
		props:{
			show:{
				default:false
			},
			level:{
				type:Number,
				default:3
			},
			schema:{
				default:"unreviewed"
			},
			item:{
				
			}
		},
		data() {
			return {
			}
		},
		onLoad() {
			console.log(this.item)
		},
		methods: {
			toSchedule(){
				this.$emit('progress',{item:this.item})
			},
			toDetail(){
				
				this.$utiltg.navigateTo(`/pages/index/audit/detail`,`?item=${JSON.stringify(this.item)}&lv=${this.level}`)
			}
		}
	}
</script>

<style>
	.choice::before{
		content: "";
		display: block;
		flex: 0.8;
		height: 1rpx;
	}
</style>
